Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 5 - Menu Manager Reference / Menu Manager Functions
Manipulating and Accessing Menu Item Characteristics /


SetMenuItemHierarchicalID

NEW WITH THE APPEARANCE MANAGER

Attaches a submenu to a menu item.

pascal OSErr SetMenuItemHierarchicalID (
                     MenuHandle inMenu,
                     SInt16 inItem,
                     SInt16 inHierID)
inMenu
The handle to the menu structure of the menu item to which you wish to attach a submenu.
inItem
An integer representing the item number of the menu item to which you wish to attach a submenu.
inHierID
An integer representing the menu ID of the submenu you wish to attach. This menu should be inserted into the menu list by calling InsertMenu.
function result
A result code; see "Result Codes".
DISCUSSION
The SetMenuItemHierarchicalID function should be called instead of setting the keyboard equivalent to 0x1B.

SEE ALSO
"Appearance Manager Gestalt Selector Constants".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998